On the Expressive Power of User - Defined E ects

نویسندگان

  • OHAD KAMMAR
  • MATIJA PRETNAR
  • Yannick Forster
  • Ohad Kammar
  • Sam Lindley
چکیده

We compare the expressive power of three programming abstractions for user-de ned computational e ects: Bauer and Pretnar’s e ect handlers, Filinski’s monadic re ection, and delimited control without answer-type-modi cation. This comparison allows a precise discussion about the relative expressiveness of each programming abstraction. It also demonstrates the sensitivity of the relative expressiveness of user-de ned e ects to seemingly orthogonal language features. We present three calculi, one per abstraction, extending Levy’s call-by-push-value. For each calculus, we present syntax, operational semantics, a natural type-and-e ect system, and, for e ect handlers and monadic re ection, a set-theoretic denotational semantics. We establish their basic meta-theoretic properties: safety, termination, and, where applicable, soundness and adequacy. Using Felleisen’s notion of a macro translation, we show that these abstractions can macro-express each other, and show which translations preserve typeability. We use the adequate nitary set-theoretic denotational semantics for the monadic calculus to show that e ect handlers cannot be macro-expressed while preserving typeability either by monadic re ection or by delimited control. We supplement our development with a mechanised Abella formalisation.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

High-Performance Holistic XML Twig Filtering Using GPUs

Current state of the art in information dissemination comprises of publishers broadcasting XML-coded documents, in turn selectively forwarded to interested subscribers. The deployment of XML at the heart of this setup greatly increases the expressive power of the profiles listed by subscribers, using the XPath language. On the other hand, with great expressive power comes great performance resp...

متن کامل

A New Trust Model for B2C E-Commerce Based on 3D User Interfaces

Lack of trust is one of the key bottle necks in e-commerce development. Nowadays many advanced technologies are trying to address the trust issues in e-commerce. One among them suggests using suitable user interfaces. This paper investigates the functionality and capabilities of 3D graphical user interfaces in regard to trust building in the customers of next generation of B2C e-commerce websit...

متن کامل

Regulating Access to XML documents

In this paper, our objective is to define a security model for regulating access to XML documents. Our model offers a security policy with a great expressive power. An XML document is represented by a tree. Nodes of this tree are of different type (element, attribute, text, comment...etc). The smallest protection granularity of our model is the node, that is, authorisation rules granting or den...

متن کامل

OWL-E: Extending OWL with Expressive Datatype Expressions

Although OWL, an emerged standard of expressing ontologies in the Semantic Web, is a very expressive ontology language, the OWL datatyping formalism is far not expressive enough to generally represent user-defined datatypes (such as XML Schema derived datatypes), not to mention user-defined datatype predicates (such as > for non-negative integers) in Semantic Web ontologies and applications. In...

متن کامل

Effects of Non-Ideal Pre-Distorter High Power Amplifiers in WCDMA Using Multi-User Detectors

Wide band code division multiple access (WCDMA) signals, transmitted by the base station high power amplifiers (HPAs), show high peak to average power ratios (PAPR), which results in nonlinear distortions. In this paper, using computer simulations effect of using a predistorted HPA on the symbol error rate (SER) of multi-user detectors in terms of output back-off (OBO) in the transmit power...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017